package main.java.exception;

/*
    重写中异常的抛出规则
 */
class Shape{
    public void draw() throws Exception {
        System.out.println("Shape.draw()");
    }
}
class Circle extends Shape{
    @Override
    public void draw() throws Exception{
        System.out.println("Circle.draw()");
    }
}
public class ThrowDemo02 {
    public static void main(String[] args) {

    }
}